#
# This is a complex example for the README
#

debug_env = Environment.new( 'debug', '.', 'build/debug' )
release_env = Environment.new( 'release', '.', 'build/release' )

app1_sources = [ 'src/app1/foo.c', 'src/app1/bar.c' ]
app2_sources = [ 'src/app2/whatever.c', 'src/app2/something.c' ]

debug_app1 = CApplicationTarget.new( debug_env, 'app1' ) do |a|
  a.add_sources( *app1_sources )
end

release_app1 = CApplicationTarget.new( release_env, 'app1' ) do |a|
  a.add_sources( *app1_sources )
end

debug_app2 = CApplicationTarget.new( debug_env, 'app2' ) do |a|
  a.add_sources( *app2_sources )
end

release_app1 = CApplicationTarget.new( release_env, 'app2' ) do |a|
  a.add_sources( *app2_sources )
end

add( debug_app1, debug_app2, release_app1, release_app2 )

